package com.mililoan.service.module.system;

import com.mililoan.common.bean.PageResultSet;
import com.mililoan.model.system.Param;

/**
 * @ClassName: ParamBo
 * @Description: 接口
 * @author taochen 
 * @since 2017-08-26
 */
public interface ParamBo {	
	/**
	 * @Title: queryParamList
	 * @Description: 分页查询列表
	 * @param param
	 * @param page
	 * @param pageSize
	 * @return
	 * @throws Exception 
	 */
	public PageResultSet<Param> queryParamList(Param param, int page, int pageSize) throws Exception;
	
	/**
	 * @Title: add
	 * @Description: 添加
	 * @param param
	 * @return
	 * @throws Exception 
	 */
	public Long addParam(Param param) throws Exception;
	
	/**
	 * @Title: update
	 * @Description: 修改
	 * @param param
	 * @return
	 * @throws Exception 
	 */
	public Long updateParam(Param param) throws Exception;
		
	/**
	 * @Title: delete
	 * @Description: 删除
	 * @param param
	 * @return
	 * @throws Exception 
	 */
	public Long deleteParam(Long keyId) throws Exception;
	
	/**
	 * 查询单个对象
	 * @param keyId
	 * @return
	 * @throws Exception 
	 */
	public Param getParamById(Long keyId) throws Exception;
	
	/**
	 * 根据NAME得到参数名称
	 * @param paramName
	 * @return
	 * @throws Exception 
	 */
	public Param getParamByKey(String paramKey) throws Exception;
}
